package top.peng.project.example.chapter5;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class UserEntity implements Serializable {

    private Long id;
    private String username;
    private String password;

    // 注意：如果我们单独添加 两个参数的构造方法，那么jvm就不会提供默认的无参构造了
    public UserEntity(String username, String password) {
        this.username = username;
        this.password = password;
    }
}
